<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>管理员管理</title>
		<link rel="stylesheet" type="text/css" href="css/QRCode.css"/>
	</head>
	<body>
		<form action="">
		    <table class="table table-noborder table-hover" style="width: 100%; align-content: center">
                    <tbody><tr>
                        <td style="width: 30%; text-align: right">
                            	用户名：
                        </td>
                        <td>1013
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%; text-align: right">新密码	：</td>
                        <td>
                        	<input type="password" name="" id="input1" value="" />
                       		<span style="color: red;display: none;">*</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;">再次输入新密码：</td>
                        <td>
                        	<input type="password" name="" id="input2" value="" />
                        	<span style="color: red;display: none;">密码不一致</span>
                        </td>
                    </tr>
                     <tr>
                    	<td></td>
                    	<td>
                    		<div class="modal-footer" style="width:175px;;">
                    			<button id="openWindowBtn" class="btn btn-primary" type="submit">确 定</button>
                    			<button id="close" class="btn" data-dismiss="modal" aria-hidden="true" type="button">取 消</button>
                    		</div>
                    	</td>
                    </tr>
                </tbody>
		    </table>
	    </form>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(':submit').on('click',function(){
				$('#input1').nextAll().eq(0).css('display','none');
				var input1=$.trim($('#input1').val());
				var input2=$.trim($('#input2').val());
				if(!input1){
					$('#input1').nextAll().eq(0).css('display','inline-block');
					return false;
				}else if(input1!=input2){
					$('#input2').nextAll().eq(0).css('display','inline-block');
					return false;
				}else{
					return true;
				}
			})
			$('#close').on('click',function(){
				window.parent.closewindow();
			})
		</script>
	</body>
</html>